package com.wxm.common.file.core.property;

import com.wxm.common.file.core.enm.FileSupplierEnum;
import com.wxm.common.file.core.service.supplier.SupplierBaseService;
import com.wxm.common.file.core.service.supplier.UFileUs3Service;
import lombok.Data;

/**
 * <p>
 *      UFile对象存储配置
 * </p>
 *
 * @author: wxm
 * @Date: 2022/1/22
 */
@Data
public class UFileUs3Property extends UploadBaseProperty{
    /**
     * 公钥
     */
    private String publicKey;

    /**
     * 私钥
     */
    private String privateKey;

    /**
     * 地区
     */
    private String bucketRegion;

    /**
     * 域名后缀
     */
    private String proxySuffix;

    /**
     * 桶
     */
    private String bucket;

    @Override
    public FileSupplierEnum fileSupplierEnum() {
        return FileSupplierEnum.U_FILE;
    }

    @Override
    public Class<? extends SupplierBaseService> supplierService() {
        return UFileUs3Service.class;
    }
}
